"""自定义中间件"""
from django.utils.deprecation import MiddlewareMixin

#中间件用来请求过程中，相当于过滤器
class Md1(MiddlewareMixin):
    def process_response(self, request, response):
        print("请求处理完毕")
        return response

    def process_request(self, request):
        print("request请求")


